﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BucaUIMvc.Repositories
{
    /// <summary>
    /// Generic repository base interface.
    /// Provides basic CRUD (Create, Read, Update, Delete) and a couple more methods.
    /// </summary>
    /// <typeparam name="T">The business object type.</typeparam>
    public interface IRepository<T>
    {        
        /// <summary>
        /// Reads an individual item.
        /// </summary>
        /// <param name="id">The business object's id.</param>
        /// <returns></returns>
        T Get(int id);
    }
}
